package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * <p>
 * 角色-controller关联表 
 * </p>
 *
 * @author 周林静
 * @since 2021-04-30
 */
@Data
@TableName("nova_role_service")
public class RoleServiceEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id 主键雪花算法id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 角色
     */
    private Long roleId;

    /**
     * controller的id
     */
    private Long serviceId;


}
